using Microsoft.AspNetCore.Http;

namespace GamFi.API.Application.Contracts.Image.PostUploadImage;

/// <summary>
/// Запрос элемента для <see cref="PostUploadImageRequest"/>
/// </summary>
public class PostUploadImageRequest
{
    /// <summary>
    /// Пустой конструктор
    /// </summary>
    public PostUploadImageRequest()
    {
    }
    
    /// <summary>
    /// Конструктор
    /// </summary>
    public PostUploadImageRequest(PostUploadImageRequest request)
        => Image = request.Image;

    /// <summary>
    /// Поток
    /// </summary>
    public IFormFile Image { get; set; } = default!;
}